// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 首页
import index from '@/views/index';
// 协议
import Protocol from '@/views/protocol/Protocol';


// 启用路由
Vue.use(Router);

// 导出路由 
export default new Router({
    routes: [{
        path: '/',
        name: '首页',
        component: index,
        iconCls: 'el-icon-tickets',
        children: [
            {
                path: '/',
                name: '协议',
                component: Protocol,
                meta: {
                    requireAuth: true
                }
            }
        ]
    }]
})